<div class="Market-filters">
	{{if market_category}}{{if market_category.items}}<div class="result">Найдено<br /><big>{{market_category.items_count}}</big> товаров</div>{{/if}}{{/if}}
	<div class="filter filter-radio filterid-sort">
		<h3 class="filter-title">Отсортировать по</h3>
		<ul class="filter-body" data-key="sort">
			<li data-value="price" class="item A">стоимости</li>
			<li data-value="name" class="item">названию</li>
			<li data-value="manufacturer" class="item">производителю</li>
			<li data-value="fid" class="item">артикулу</li>
		</ul>
	</div>

	{{if configMarket.filter_name}}
	<div class="filter filter-text filterid-name_like">
		<h3 class="filter-title">Название</h3>
		<ul class="filter-body">
			<li><input type="text" value="{{market_filters.name_like}}"></li>
		</ul>
	</div>
	{{/if}}

	{{if configMarket.filter_manufacturers}}
	<div class="filter filter-checkbox filterid-manufacturers">
		<h3 class="filter-title">Производители</h3>
		<ul class="filter-body">
			{{foreach m in market_filters.manufacturers}}
			<li data-value="{{m.id}}" class="item{{if m.checked}} A{{/if}}">{{m.name}}</li>
			{{/foreach}}
		</ul>
	</div>
	{{/if}}
	{{market_filters_html}}
	{{if configMarket.filter_prices}}
	<div class="filter filter-range filterid-price">
		<h3 class="filter-title">Диапазон цен</h3>
		<div class="filter-body">
			<div class="range"></div>
			<input type="text" class="min" data-orig="{{market_filters.prices.minval}}" value="{{market_filters.prices.cminval}}" disabled="disabled" /><input type="text" name="" disabled="disabled" data-orig="{{market_filters.prices.maxval}}" value="{{market_filters.prices.cmaxval}}" class="max" />
		</div>
	</div>
	{{/if}}
	
	{{if configMarket.filter_fid}}
	<div class="filter filter-text filterid-fid">
		<h3 class="filter-title">Артикул</h3>
		<ul class="filter-body">
			<li><input type="text" value="{{market_filters.fid}}"></li>
		</ul>
	</div>
	{{/if}}
</div>
<script type="text/javascript">
$(function() {
	MarketFuncs.filters_init('{{market_filters_category_id}}');
});
</script>
